package com.didispace;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@EnableEurekaServer
@SpringBootApplication
public class Application {

	public static void main(String[] args) {
		new SpringApplicationBuilder(Application.class).web(true).run(args);
	}

}

// PS F:\BOOK\2022\Spring Cloud微服务实战\SpringCloudBook-master\chapter03\eureka-server> mvn clean package
// PS F:\BOOK\2022\Spring Cloud微服务实战\SpringCloudBook-master\chapter03\eureka-server\target> java -jar eureka-server-1.0.0.jar --spring.profiles.active=peer1
// PS F:\BOOK\2022\Spring Cloud微服务实战\SpringCloudBook-master\chapter03\eureka-server\target> java -jar eureka-server-1.0.0.jar --spring.profiles.active=peer2
// http://localhost:1111/
// http://localhost:1112/

// 2023-01-08 05:23:45.612  INFO 16540 --- [nio-1111-exec-8] c.n.e.registry.AbstractInstanceRegistry  : Registered instance HELLO-SERVICE/LAPTOP-ABK0VAGE:hello-service:8081 with status UP (replication=false)